<%@ page import="java.awt.*" %>
<%@ page import="java.util.List" %>
<%@ page import="pojo.ST" %><%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2022/3/1
  Time: 10:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    body{
        background-image:linear-gradient(to right, #ffc6e2, #ccb4ff);
    }

    .id
    {
        border: 2px solid #080a0b;
        border-radius: 10px;
        width: 200px;
        height: 35px;
    }

    hover {
        color: #ff7300;
    }

    h2{
        color: #6b138b;
        text-align: center;
        vertical-align:middle;
    }

    form{
        background-color: white ;
        width: 300px;
        height: 100px;
        border-radius: 20px;
        opacity: 0.9;
        margin-left: auto;
        margin-right: auto;
        margin-top: 240px;
    }


    select{
        width: 200px;
        height: 40px;
        border: 1px solid #080a0b;
    }

    a{
        text-decoration:none;
    }
    button{
        background-color: white;
        color: #c7a9ff
    }
</style>
<body>
<button><a href="Init.jsp">上一页</a></button>
<form style="text-align:center;vertical-align:middle;" action="/IndividualStudent" method="get">



    <%
        String objId = "";
        try {
        List<ST> stList= (List<ST>) request.getAttribute("obj_data");
            System.out.println(stList.size());
        for (int i = 0; i < stList.size(); i++) {
            out.print(stList.get(i).getStudentID()+" ");
            out.print(stList.get(i).getStudentName()+" ");
            out.print(stList.get(i).getStudentDate()+" ");
            out.print(stList.get(i).getStudentNumber()+" ");
            out.print(stList.get(i).getStudentSemester()+" ");
            out.print(stList.get(i).getStudentStatus()+"</br>");

            objId =  stList.get(i).getStudentID();
            request.setAttribute("objId",objId);
        }
        }catch (Exception e){
            e.printStackTrace();
        }

    %>
    <h5>Student ID</h5><input class="id" name="id" value=<%= objId %> >
    <input type="submit" value="确认">
</form>



</body>
</html>
